import Dushi from "../pages/Dushi/Dushi.jsx";
import Home from "../pages/Home/Home"
import Kehuan from "../pages/Kehuan/Kehuan";
import Lishi from "../pages/Lishi/Lishi";
import Qihuan from "../pages/Qihuan/Qihuan";
import { createBrowserRouter } from "react-router-dom";

export const routerlist=[
    {
        path:'/dushi',
        element:<Dushi />,
        title:'全部类型'
    },
    {
        path:'/kehuan',
        element:<Kehuan />,
        title:'科幻'
    },
    {
        path:'/lishi',
        element:<Lishi />,
        title:'历史'
    },
    {
        path:'/qihuan',
        element:<Qihuan />,
        title:'奇幻'
    },
]

const router=createBrowserRouter([
    {
        path:'/',
        element:<Home />,
        children:routerlist
    }
])

export default router;